# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=py3-virtnbdbackup
pkgver=2.9
pkgrel=0
pkgdesc="Backup utility for Libvirt / qemu / kvm"
url="https://github.com/abbbi/virtnbdbackup"
arch="noarch"
license="GPL-3.0"
depends="python3 py3-colorlog py3-typing-extensions py3-libvirt py3-lxml py3-tqdm py3-paramiko py3-lz4 libnbd"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://github.com/abbbi/virtnbdbackup/releases/download/v$pkgver/virtnbdbackup-$pkgver.tar.gz"
builddir="$srcdir/virtnbdbackup-$pkgver"
options="!check" # tests requires VMs

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
3be993a5197222b3af351934d8d6de4bb506727ed8793ca2a06369d85c55e3eeefe4f546bfe114c48b9c901f642155856e3c1d3fccd0cb2e47bdf3e8459820c5  virtnbdbackup-2.9.tar.gz
"
